<%@ page import="java.util.List" %>
<%@ page import="java.util.ArrayList" %><%--
  Created by IntelliJ IDEA.
  User: zsr
  Date: 2021/4/22
  Time: 15:18
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" errorPage="error.jsp" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%  //定义一个ArrayList
    List<Integer> list=new ArrayList<>();
    list.add(0);
    list.add(1);
    //触发数组下标越界异常
    list.get(2);
%>

</body>
</html>
